<div id="wrapper">
    <div id="page-wrapper">
        <div class="panel panel-primary">
            <div class="panel-heading"><h5 class="panel-title"></h5></div>
            <div class="panel-body">
                <div id="toolbar" class="ms-toolbar">
                    <button id="toolbar-add" class="btn btn-danger" data-toggle="modal" data-target="#myModal">
                        <span class="glyphicon glyphicon-plus"></span> 增加
                    </button>
                </div>
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                     aria-hidden="true">
                    <div class="modal-dialog">
                        <div id="addbrand" class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-hidden="true">&times;</button>
                                <h4 class="modal-title" id="myModalLabel">增加商品</h4>
                            </div>
                            <div class="modal-body">
                                <form id="regionGoodsForm" class="form-horizontal" role="form"
                                      enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">商品名称</label>

                                        <div class="col-sm-10">
                                            <select name='goods_id' id="goods_id" class="form-control"
                                                    style="width:100%;"></select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">商品专区</label>

                                        <div class="col-sm-10">
                                            <select name='rid' id="rid" class="form-control"
                                                    style="width:100%;"></select>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="modal-footer">
                                <button id="close" type="button" class="btn btn-primary" data-dismiss="modal">关闭
                                </button>
                                <button id="confirm" type="button" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div>
                    <table id="brandtable"
                           class="table table-bordered table-hover"
                           data-toolbar="#toolbar"
                           data-search="true"
                           data-toggle="table">
                        <thead>
                        <tr>
                            <th>商品ID</th>
                            <th>商品名称</th>
                            <th>专区ID</th>
                            <th>专区名称</th>
                            <th>专区开始时间</th>
                            <th>专区结束时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        {%notempty name="$data"%}
                        {%volist name="$data" id="vo"%}
                        <tr>
                            <td>{%$vo.goods_id%}</td>
                            <td>{%$vo.goods_name%}</td>
                            <td>{%$vo.rid%}</td>
                            <td>{%$vo.name%}</td>
                            <td>{%$vo.start_time |date="Y:m:d H:m:s",### %}</td>
                            <td>{%$vo.end_time |date="Y:m:d H:m:s",### %}</td>
                        </tr>
                        {%/volist%}
                        {%/notempty%}
                        </tbody>
                    </table>
                    <div class="pull-right">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/home/widget/shop/regionorder/regionorder.js"></script>
